﻿<Window x:Class="Studio.DocumentDB.Dialogs.NewCollectionWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:Studio.DocumentDB"
        Title="New Collection" Height="250" Width="450">
    <Window.Resources>
        <Style TargetType="Button">
            <Setter Property="MinWidth" Value="80"/>
        </Style>
    </Window.Resources>
    <DockPanel LastChildFill="True" FocusManager.FocusedElement="{Binding ElementName=idBox}">
        <DockPanel DockPanel.Dock="Bottom" LastChildFill="False" Margin="20">
            <Button Name="okButton" DockPanel.Dock="Left" IsDefault="True" Click="Ok_Click">OK</Button>
            <Button DockPanel.Dock="Right" IsCancel="True">Cancel</Button>
        </DockPanel>
        <Grid DockPanel.Dock="Top" Margin="20">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="20"/>
            </Grid.RowDefinitions>
            <Label Grid.Column="0" Grid.Row="0">ID</Label>
            <TextBox Name="idBox" Grid.Column="1" Grid.Row="0" TextChanged="idBox_TextChanged" />
        </Grid>
        <Grid Name="emptyness"/>
    </DockPanel>
</Window>
